import request from "@/config/axios";
// 请求数据
export const mesTableData = ()=>request(
    {
        url:`http://localhost:8080/jeecg-boot/sys/permission/list`,//请求的地址
        method:"GET"
    }
)

// 增加表单数据
export const addMenuTableData = (data)=>request(
    {
        url:`http://localhost:8080/jeecg-boot/sys/permission/add`,//请求的地址
        method:"POST",
        data
    }
)

// 删
export const delMenuData = (data)=>request(
    {
        url:`http://localhost:8080/jeecg-boot/sys/permission/delete?id=${data.id}`,//请求的地址
        method:"DELETE",

    }
)

// 改
export const editMenuData = (data)=>request(
    {
        url:`http://localhost:8080/jeecg-boot/sys/permission/edit`,//请求的地址
        method:"PUT",
        data

    }
)